<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/searchform.css">
<link rel="stylesheet" href="statics/css/ExportBusiness/tpl/newupoffer.css">
<link rel="stylesheet" href="statics/css/ExportBusiness/tpl/ySearchSelectParts.css">
<link rel="stylesheet" href="statics/css/BasicData/tpl/newupproduct.css">
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header layui-bg-cyan">
            <span>产品合并</span>
        </div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <form class="layui-form" action="" lay-filter="editor-form" id="editor-form">
                        <table class="layui-table" id="productselect" lay-filter="producttable"></table>
                        <table class="layui-table" id="productsaselect" lay-filter="productsatable"></table>
                        <%--底部按钮--%>
                        <div class="padding text-center">
                            <button type="button" class="layui-btn layui-btn-normal" lay-submit  lay-filter="form-save">合并</button>
                            <a type="button" class="layui-btn layui-btn-primary" id="shutdown">关闭</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="productSelectParent">
    <div class="layui-input-inline" style="width: 140px">
        <div class="layui-form-select ySearchSelectParts y_{{d.tempId}}" data-id="{{d.tempId}}">
            <div class="layui-input value_{{d.tempId}}">{{d.productCode==undefined?"":d.productCode}}</div>
            <i class="layui-edge"></i>
            <table class="layui-table zdy" id="productSelectParent_{{d.tempId}}" lay-filter="productSelectParentTable_{{d.tempId}}"></table>
        </div>
    </div>
</script>
<script type="text/html" id="productcodeselect">
    <div class="layui-input-inline" style="width: 140px">
        <div class="layui-form-select ySearchSelect y_{{d.tempId}}" data-id="{{d.tempId}}">
            <div class="layui-input value_{{d.tempId}}">{{d.productCode==undefined?"":d.productCode}}</div>
            <i class="layui-edge"></i>
            <table class="layui-table zdy" id="productcodeselect_{{d.tempId}}" lay-filter="productcodeselecttable_{{d.tempId}}"></table>
        </div>
    </div>
</script>
<!--产品工具栏-->
<script type="text/html" id="producttoolbar">
    <a class="layui-btn layui-btn-sm" data-type="getCheckData" lay-event="new">添加产品</a>
</script>

<!--配件工具栏-->
<script type="text/html" id="productsatoolbar">
    <a class="layui-btn layui-btn-sm" data-type="getCheckData" lay-event="new">添加配件</a>
</script>

<!--配件操作栏-->
<script type="text/html" id="productsaup">
    <a class="layui-btn layui-btn-sm layui-btn-danger"  lay-event="delet">删除</a>
</script>

<%@ include file="../../tpl/foot.jsp"%>
<script src="statics/js/BasicData/tpl/newProductAndParts.js"></script>